package com.scu.hotelsystem.dao;

import com.scu.hotelsystem.pojo.Room;
import com.scu.hotelsystem.util.search.RoomSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomDao {
    List<Room> searchRoomList(@Param("roomSearch") RoomSearch roomSearch, @Param("index") int index, @Param("limit") int limit);

    int addRoom(@Param("room") Room room);

    Room searchRoomById(@Param("id") int id);

    int updateRoom(@Param("room") Room room);

    int deleteRoom(@Param("idList") int[] idList);
}
